


package steathgame;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.opengl.GL11;
/**
 *
 * @author Johaa
 */
public class GameLoop {

    int width;
    int height;
    
    
    	public void start() {
		try {
			Display.setDisplayMode(new DisplayMode(width,height));
                        Display.setTitle("Sota");
			Display.create();
		} catch (LWJGLException e) {
			e.printStackTrace();
			System.exit(0);
		}
		
		// init OpenGL here
		
		while (!Display.isCloseRequested()) {
			
			// render OpenGL here
			
			Display.update();
		}
		
		Display.destroy();
	}
    
    public GameLoop (int Width, int Height)
    {
        width = Width;
        height = Height;
        
    }
    
    
}
